import React from "react";

export default class ChangeCount extends React.Component {
  constructor(props) {
    super(props);

    this.handleClick = this.handleClick.bind(this);
  }

  handleClick() {
    this.props.handleCountChange();
  }

  render() {
    return <button onClick={this.handleClick}>点击前{this.props.count}</button>;
  }
}
